import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yinsh
 * Date: 2025-01-22
 * Time: 16:06
 */
public class MyQueue {

    List<Integer> linkedlist = new LinkedList<>();

    public void offer(int val) {
        linkedlist.add(val);
    }
    public void poll() {
        linkedlist.remove(0);
    }
    public int peek() {
        return linkedlist.get(0);
    }
    public boolean empty() {
    return linkedlist.isEmpty();
    }




}
